package org.jeecg.modules.erp.goods.service.impl;

import org.jeecg.modules.erp.goods.entity.ErpGoodsPackage;
import org.jeecg.modules.erp.goods.mapper.ErpGoodsPackageMapper;
import org.jeecg.modules.erp.goods.service.IErpGoodsPackageService;
import org.jeecg.modules.erp.goods.vo.ErpGoodsPackageVo;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 产品包材关联表
 * @Author: jeecg-boot
 * @Date:   2024-05-29
 * @Version: V1.0
 */
@Service
public class ErpGoodsPackageServiceImpl extends ServiceImpl<ErpGoodsPackageMapper, ErpGoodsPackage> implements IErpGoodsPackageService {
	
	@Autowired
	private ErpGoodsPackageMapper erpGoodsPackageMapper;
	
	@Override
	public List<ErpGoodsPackageVo> selectByMainId(String mainId) {
		return erpGoodsPackageMapper.selectByMainId(mainId);
	}

	@Override
	public List<ErpGoodsPackageVo> selectByReviewId(String reviewId, String goodsId) {
		return erpGoodsPackageMapper.selectByReviewId(reviewId,goodsId);
	}
}
